import { getAll, insertOne } from "../dao/commonpart.dao"

export const listCommonparts = async ()=>{
    const res = await getAll()
        return res
}
export const newCommonpart = async (commonpart)=>{
    await insertOne(commonpart)
}